package com.longge;

public class CountOdds {

    public int countOdds(int low, int high) {

        int res = 0;
        int count = high - low + 1;
        if (low % 2 == 0) {
            res = count / 2;

        } else if (low % 2 == 1) {
            res = (count + 1) / 2;
        }
        return res;
    }
}
